package cool.mtc.base.plugin.generator.code.model.template.ui;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @author 明河
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UiComponentTableTemplateParam extends UiComponentTemplateParam {

    public UiComponentTableTemplateParam(UiTemplateParam param) {
        BeanUtils.copyProperties(param, this);
    }

    @Override
    public String getTemplateRelativePath() {
        return "ui/component_table.ftl";
    }

    @Override
    public String getFileName() {
        return this.getClassPrefix() + "Table.vue";
    }
}
